<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>监督受理</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script type="text/javascript" charset="utf-8"
	src="<c:url value='/KindEditor/kindeditor.js'/>"></script>
	<%@ include file="/common/extjs.jsp"%>
<script type="text/javascript">
	$(document).ready(
			function() {

				$("#inputForm").validate({
					event : "blur",
					isTip : false,
					rules : {
						'value' : {
							required : true
						}
					},
					  messages: {
						  'value': {
						       required: "必须选择核查人,如果没有选项,请先操作指定监督组"
						     }
						   }
				});

				var date = new Date();
				$.get(
						"${ctx}/business/history/history!info.action?key=${id}&time="
								+ date, function(data) {
							$("#frame").html(data);
						});
				$("#usern").click(function() {
					UserSelector.getView(function(a, c) {
						$("#usern").val(c);
						$("#userid").val(a);
					}, true).show();
				});
			});
	function close() {
		$.window.closeAll();
	}

	function saveCheck(checkId, projectId) {
		window.location.href = "${ctx}/business/mdetect/report!look.action?fid="
				+ checkId + "&projectId=" + projectId;
	}

	function batchsave() {
		var url = "${ctx}/business/appl/superviser.action?projectId="
				+ encodeURI('${param.projectId}');
		showWindow("指定监督组", url,{},closees);
	}
	
	function closees(){
		window.location.reload();
	}
</script>
</head>
<body>
	<form action="${ctx}/business/application!save.action" method="post"
		id="inputForm" class="yform">
		<div id="caption">
			<h6>审核记录</h6>
		</div>
		<div id="frame"></div>
		<div id="caption">
			<h6>分管领导审核意见</h6>
		</div>
		<input type="hidden" id="id" name="id" value="${id }"> <input
			type="hidden" name="status" id="status" value="05"> <input
			type="hidden" name="projectId" id="projectId" value="${projectId}">
		<input type="hidden" name="taskId" id="taskId"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" id="taskid" name="taskid"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" id="key" name="key" value="username">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td width="120">现场核查</td>
					<td><pt:labels type="supe" argument1="${projectId }" argument2="02" hasEmpty="false"  name="value"></pt:labels> </td> 
				</tr>
				<tr class="type-text">
					<td>审核意见</td>
					<td><textarea name="view" id="view" rows="3" ></textarea></td>
				</tr>
			</table>
		</div>
		<div class="type-button">
			<input type="submit" class="submit" value="提交"
				onclick="return isProcess();" />
				<a
				href="javascript:showWindow('查看申请资料','${ctx}/business/appl/petition!input.action?projectId=${projectId}&fid=${id}&decorator=open&confirm=true')">查看申请书</a>
			<a href="javascript:viod(0);" onclick="batchsave();">指定监督组</a>
		</div>
	</form>
</body>
</html>